package cn.bcsp.service;

import cn.bcsp.pojo.SysUser;
import cn.bcsp.util.PageUtil;
import org.apache.ibatis.annotations.Param;

public interface SysUserService {

    SysUser querySysUser(int id);

    int addSysUser(SysUser sysUser);

    SysUser login(String account, String password);

    PageUtil<SysUser> querySysUserByPage(String realName, int roleId, int currentPage);

    int editSysUser(SysUser sysUser);

    int delById(@Param("id") Integer id);

    int findAccount(String account);
}